package com.wynet.shopsapp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;


@Data
@TableName("t_user_detail")
@NoArgsConstructor
public class UserDetail {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer uid;
    private String avatarurl;
    private Date birthday;
    private String sex;
    private String city;
    private Integer gold;
    /**
     * 状态：1.在职 2.学生 3.待业*/
    private String status;
    private Date ctime;

    public UserDetail(Integer uid, Integer gold) {
        this.uid = uid;
        this.gold = gold;
        this.ctime=new Date();
    }
}
